import java.util.Random;
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        while (n>10) {
            System.out.print(n%10 + ",");
            n/=10;
        }
        System.out.print(n%10);
    }
    public static void main16(String[] args) {
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        String ou="";
        String ji="";
        for(int i=0;n>0;i++,n>>=1){
            int m=n&1;
            if(i%2==0){
                ou=ou + m;
            } else{
                ji=ji + m;
            }
        }
        System.out.println("偶数序列为：" +ou);
        System.out.println("奇数序列为：" +ji);

    }
    public static void main15(String[] args) {
        Scanner s=new Scanner(System.in);
        int n=0;
        int Word=12345;
        while(n<3) {
            int x=s.nextInt();
            if(x==Word){
                System.out.println("登陆成功");
                break;
            } else {
                System.out.println("密码错误还有" + (2-n) + "次机会");
                n++;
            }
        }
    }
    public static void main14(String[] args) {
        Scanner s=new Scanner(System.in);
        while(s.hasNextInt()) {
            int n = s.nextInt();
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    if (i == j || i + j == n - 1)
                        System.out.print("*");
                    else
                        System.out.print(" ");
                }
                System.out.println();
            }
        }
    }

    public static void main13(String[] args) {
        Scanner s = new Scanner(System.in);
        while (s.hasNextInt()) {
            int n = s.nextInt();
            if (n % 2 == 1) {
                for (int i = 0; i < n; i++) {
                    if (i < n / 2) {
                        for (int j = 0; j < i; j++)
                            System.out.print(" ");
                        System.out.print("*");
                        for (int k = n - 2; k > i * 2; k--) {
                            System.out.print(" ");
                        }
                        System.out.println("*");
                    } else if (i == n / 2) {
                        for (int j = 0; j < i; j++)
                            System.out.print(" ");
                        System.out.println("*");
                    } else {
                        for (int j = i; j < n - 1; j++) {
                            System.out.print(" ");
                        }
                        System.out.print("*");
                        for (int k = 2 * i - n; k > 0; k--) {
                            System.out.print(" ");
                        }
                        System.out.print("*");
                        System.out.println();
                    }
                }
            } else {
                for (int i = 0; i < n; i++) {
                    if (i < n / 2) {
                        for (int j = 0; j < i; j++)
                            System.out.print(" ");
                        System.out.print("*");
                        for (int k = n - 2; k > i * 2; k--) {
                            System.out.print(" ");
                        }
                        System.out.println("*");
                    } else {
                        for (int j = i; j < n - 1; j++) {
                            System.out.print(" ");
                        }
                        System.out.print("*");
                        for (int k = 2 * i - n; k > 0; k--) {
                            System.out.print(" ");
                        }
                        System.out.print("*");
                        System.out.println();
                    }
                }
            }
        }
    }

    public static void main12(String[] args) {
        Scanner s=new Scanner(System.in);
        int n= s.radix();
        int m=s.nextInt();
        while(n!=m)
        {
            if(m<n) {
                System.out.println("小了");
            } else if (m>n) {
                    System.out.println("大了");
                }
            m=s.nextInt();

        }
        System.out.println("等于");
    }
    public static void main11(String[] args) {
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        for(int i=1;i<=n;i++){
            int sum=0;
            int m=i;
            while (m!=0)
            {
                int a=m%10;
                sum+=a*a*a;
                m/=10;
            }
            if(sum==i)
                System.out.println(i);
        }
    }

    public static void main10(String[] args) {
        int sum=0;
        for(int i=9;i<100;i++) {
            int n=i;
            while(n!=0) {
                int a=n%10;
                if(a==9) {
                    sum++;
                }
                n/=10;
            }
        }
        System.out.println(sum);
    }
    public static void main9(String[] args) {
        Scanner s=new Scanner(System.in);
        int n=s.nextByte(8);
        System.out.println(n);
    }
    public static void main8(String[] args) {
        Scanner s=new Scanner(System.in);
        String name=s.next();
        System.out.println(name);
    }
    public static void main7(String[] args) {
        for(int i=6;i<=100;i++){
            if(i%6==0) {
                System.out.println(i);
            } else {
                continue;
            }
        }
    }
    public static void main6(String[] args) {
        Scanner s=new Scanner(System.in);
        long res=0;
        long sum=1;
        int n=s.nextInt();
        for(int i=1;i<=n;i++){
            sum*=i;
            res+=sum;
        }
        System.out.println(res);
    }
    public static void main5(String[] args) {
        int a=1;
        while(a<=3)
        {
            System.out.println(a);
            a++;
        }
    }
    public static void main4(String[] args) {
        Scanner s=new Scanner(System.in);
        int a=s.nextInt();
        if((a%100==0&&a%400==0)||(a%4==0&&a%100!=0))
                System.out.println(1);
        else
                System.out.println(0);
    }
    public static void main3(String[] args) {
        int a=-1;
        System.out.println(a);
        int b=a>>>1;
        System.out.println(b);
    }
    public static void main2(String[] args) {
        int a=1;
        a=a++;
        System.out.println(a);
        a=++a;
        System.out.println(a);
    }
    public static void main1(String[] args) {

        System.out.println(11.5%2);
        System.out.println(10);

        int c=1;
        double a=12.5;
        double b=a+1;
        System.out.println(b);
        c+=1.2;
        System.out.println(c);
        a+=1.2;
        System.out.println(a);
    }
}